import request from '@/utils/request'
import url from './url'

// 获取 企业信息
export function getBusInfo(id) {
  return request({
    url: url.tenementById,
    method: 'get',
    params: { id }
  })
}

// 修改企业信息
export function editBus(dmpTenant = {}) {
  return request({
    url: url.tenementUpdate,
    method: 'post',
    data: {
      companyIds: [],
      dmpAuthUser: {},
      dmpTenant
    }
  })
}

// 
export function userEnable(data) {
  // const { state, userId } = data
  return request({
    url: url.userEnable,
    method: 'post',
    isForm: true,
    data
  })
}
